package com.fhMall.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 程序名：.java<br>
 * 程序功能 <br>
 * 作成者：xianlin <br>
 * 日期：2019-09-23 11:46<br>
 * 修改履历 <br>
 * 项目名    状态      作成者      日期   <br>
 * --------------------------------------- <br>
 * 新规      xianlin   2019-09-23 11:46 <br>
 * ----------------------------- <br>
 */
public interface ProductFacade {

    @GetMapping("/pms/pmsProduct/queryById")
    @ResponseBody
    String queryProductInfo(@RequestParam(name = "id") String id);

    @GetMapping("/pms/pmsProduct/queryByIds")
    @ResponseBody
    String queryProductsInfo(@RequestParam(name = "ids") String ids);

    @GetMapping(value = "/pms/pmsProduct/queryProductByCategory",consumes = "application/json")
    @ResponseBody
    String queryProductByCategory(@RequestParam(name = "categoryId") Integer categoryId,
                                  @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
                                  @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize);

    @GetMapping(value = "/pms/pmsProduct/queryPageByKeyword",consumes = "application/json")
    @ResponseBody
    String searchProductList(@RequestParam(name = "keyword") String keyword,
                             @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
                             @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize);
}
